<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Remove Payment</title>
        <link rel="stylesheet" href="<c:url value="/default.css"/>" type="text/css">
    </head>
    <body>
        <div>
        <h1>Naozaj chcete odstrániť platbu?</h1>
        <form action="<c:url value="/ConfirmRemovePayment?id=${payment.id}"/>"  method="post">
            <table style="margin:0px auto">
                <tr class="odd">
                    <th>Odosielateľ*:</th>
                    <td>${payment.bankAcc}</td>
                </tr>
                <tr class="even">
                    <th>Príjemca*:</th>
                    <td>${payment.destinationAcc}</td>
                </tr>
                <tr class="odd">
                    <th>Čiastka*:</th>
                    <td>${payment.amount}</td>
                </tr>
                <tr class="even">
                    <th>Variabilný symbol*:</th>
                    <td>${payment.variableSymbol}</td>
                </tr>
                <tr class="odd">
                    <th>Dátum prevodu*:</th>
                    <td>${stringDate}
                    </td>
                </tr>
                <tr class="even">
                    <th>poznámka:</th>
                    <td>${payment.note}</td>
                </tr>
            </table>
            <c:if test="${not empty error}">
                <p class="error">
                    <c:out escapeXml="false" value="${error}"/>
                </p>
            </c:if>
            <p>
                <input type="Submit" value="Odstrániť" name="submit" />
                <span class="button"><a href="index.jsp">Zrušiť</a></span>
            </p>
        </form>
        </div>
    </body>
</html>
